/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../styles/constants/index.scss';

.flexTable {
  width: 100%;
  display: flex;
  flex-basis: 100%;
  flex-direction: column;

  &__headerContainer, &__dataContainer {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
  }

  &__dataContainer {
    flex-grow: 1;
  }

  &__row {
    display: flex;
    width: 100%;
    flex-basis: 100%;
    min-height: 30px;
    align-items: center;
    &.--header {
      border-bottom: 1px solid $dark-gray;
      font-weight: 500;
      height: 30px;
    }

    &.--data {
      border-bottom: 1px solid $border-color;
    }

    &.--empty {
      min-height: 50px;
      background-color: $lighter-neutral-color;
      color: $silver;
      justify-content: center;
      font-weight: 500;
      font-size: $font-m;
    }
  }

  &__cell {
    display: flex;
    flex-basis: 0;
    flex-grow: 1;
  }
}
